package core.schedule.snake.schedule.job;

import org.quartz.Job;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;

import core.schedule.snake.schedule.core.DsfaTaskHelper;
import core.schedule.snake.schedule.core.TaskInfo;

public class DSFALoopTaskJob implements Job {

	public TaskInfo taskInfo ;
	
	public DSFALoopTaskJob(TaskInfo taskInfo) {
		super();
		this.taskInfo = taskInfo;
	}

	public DSFALoopTaskJob() {
		super();
	}

	public void execute(JobExecutionContext arg0) throws JobExecutionException {
		if(taskInfo==null) {
			taskInfo=DsfaTaskHelper.getTaskInfo();
		}
		DsfaTaskHelper.timmerBussiness(taskInfo);	
	}
	
	

}
